<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户管理</title>
    <script src="js/base.js"></script>
    <link rel="stylesheet" href="css/usermanage.css">
</head>

<body>
    <!-- 用户管理 -->
    <div class="daily">
        <div class="header">
            <span><i></i>用户管理</span>
            <!-- 搜索 -->
            <aside>
                <input type="search" name="" id="nauser" placeholder="请输入姓名"><button onclick="searchuser()">搜索</button>
            </aside>
            <p>
                <img src="images/加号.png" alt="" onclick="addopen()" style="cursor: pointer;">
            </p>
        </div>
        <div class="banner">
            <table border="0">

                <thead>
                    <tr>
                        <th>全选</th>
                        <th>姓名</th>
                        <th>部门</th>
                        <th>性别</th>
                        <th>电话</th>
                        <th>职能</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="pageListTableBody">
                </tbody>
            </table>
            <div id="pages">
                <span id="spanPre" onclick="uppages()">上一页</span>
                <span id="spanNext" onclick="pages()">下一页</span>
                <!-- 创建盒子存放第几页和总共几页 -->
                第<strong id="spanPageNum"></strong>页/共<strong id="spanTotalPage"></strong>页
            </div>
        </div>
        <!-- 单击修改弹出修改弹窗 -->
        <div class="addopen">
            <div>
                <b>添加用户</b>
                <form>
                    <p>姓名: <input type="text" class="names"><br>
                        性别: <input type="text" name="" id="sex">
                        <br>
                        账号: <input type="text" id="account"><br>密码: <input type="text" class="pwd"><br>
                    </p>
                    <p>
                        部门: <input type="text" class="clazz"><br>
                        职能：<input type="text" class="role"><br>
                        电话: <input type="text" class="tel">
                    </p>
                </form>
                <span>
                    <button onclick="adduser()">确认</button>
                    <button onclick="offadd()">取消</button>
                </span>
            </div>
        </div>
        <!-- 单击修改弹出修改弹窗 -->
        <div class="open">
            <div>
                <b>修改用户</b>
                <form>
                    <p>姓名: <input type="text" class="names"><br>
                        性别: <input type="text" name="" id="sex">
                        <br>
                        账号: <input type="text" id="account"><br>密码: <input type="text" class="pwd"><br>
                    </p>
                    <p>
                        部门: <input type="text" class="clazz"><br>
                        职能：<input type="text" class="role"><br>
                        电话: <input type="text" class="tel">
                    </p>
                </form>
                <span>
                    <button onclick="userrevise()">确认</button>
                    <button onclick="offrev()">取消</button>
                </span>
            </div>
        </div>
        <!-- 打开删除弹窗 -->
        <div class="del">
            <div style="height: 25%;">
                <b>删除当前学生</b>
                <h3 style="width: 100%;height: 60px;text-align: center;line-height: 60px;">是否删除当前班级</h3>
                <span>
                    <button onclick="deluser()">确认</button>
                    <button onclick="offdel()">取消</button>
                </span>
            </div>
        </div>
    </div>
    <script src="js/usermanage.js"></script>
</body>

</html>